#include "My3DPoint.h"
#include<cmath>
My3DPoint::My3DPoint()
{
    //ctor
    this->x = 0;
    this->y = 0;
    this->z = 0;
}

My3DPoint::My3DPoint(double myX,double myY,double myZ)
{
    //ctor
    this->x = myX;
    this->y = myY;
    this->z = myZ;
}

My3DPoint::~My3DPoint()
{
    //dtor
}
void My3DPoint::setX(double myX)
{

    this->x = myX;
}
void My3DPoint::setY(double myY)
{
    this->y= myY;
}
void My3DPoint::setZ(double myZ)
{

    this->z = myZ;
}
double My3DPoint::getX()
{
    return this->x;
}
double My3DPoint::getY()
{
   return this->y;
}
double My3DPoint::getZ()
{
    return this->z;
}
double My3DPoint::distance3D(My3DPoint b)
{
    return sqrt(pow(this->getX()- b.getX(),2) + pow(this->getY()- b.getY(),2) + pow(this->getZ()- b.getZ(),2));

}
